# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0820-04.py
    ======================
    @descript:合并线程
    @copyright:nnz
    @author:dln
    @date: 2021/8/22 20:05
    @version:v1.0
'''
import threading
def f_run():
    print('线程{}开始'.format(threading.currentThread().getName()))
    for element in range(1,11):
        print('线程{}的值为{}'.format(threading.currentThread().getName(),element))
        pass
    print('线程{}结束'.format(threading.currentThread().getName()))
if __name__=='__main__':
    print('线程{}开始'.format(threading.currentThread().getName()))
    #创建子线程
    v_object=threading.Thread(target=f_run,name='zixiancheng')
    v_object.start()
    v_object.join()
    for element in range(1,7):
        print('线程{}的值为：{}'.format(threading.currentThread().getName(),element))
        pass
    print('线程{}结束'.format(threading.currentThread().getName()))
